package 编程题;
import java.util.*;
public class Num_8_4_01 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        while ( sc.hasNextLine() ){
            String str = sc.nextLine();
            String[] dp = str.split(",");
            String str2 = sc.nextLine();

            boolean is = false;

            for (int i = 0; i < dp.length; i++) {

                if(dp[i].charAt(0) == '"'){
                    String pj = dp[i];
                    i ++;
                    while(  dp[i].charAt(dp.length - 1) == '"'){
                        pj +=  dp[i];
                        i ++;
                    }
                    if(pj.equals(str2)){
                        is = true;
                        break;
                    }
                }else{
                    if(dp[i].equals(str2)){
                        is = true;
                        break;
                    }
                }

            }

            if(is){
                System.out.println("Ignore");
            }else{
                System.out.println("Important!");
            }
        }

    }
}

/*
Joe,Kewell,Leon
        Joe
        "Letendre, Bruce",Joe,"Quan, William"
        William
        */

/*
Ignore
Important!
 */